package com.hh.demo.controller;

import com.hh.demo.service.BookinfoService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
public class BookinfoController {
    @Resource
    private BookinfoService bookinfoService;
    //插入一条图书信息*
    @RequestMapping("/insertBookInfo")
    @ResponseBody
    public void insertBookInfo(String bookNo,String bookName,String author,String bookCard,Integer bookNum){
        bookinfoService.insertBookInfo(bookNo,bookName,author,bookCard,bookNum);
    }
}
